Experimental project

This is a sandbox project, which contains experimental code for developer use only.

I am no longer actively supporting this code. The approach has been entirely reworked and is available as a new sandbox project, Date Repeat Themeable. Your assistance and feedback is welcome and appreciated.

This module provides two formatters for CCK date fields (type 'date', 'datetime' and 'datestamp'). Its primary purpose is to tidy up and make more themeable the output when using repeating date functionality via the Date Repeat API.

D7 Port

A 7.x branch has just been added. Testers welcome and appreciated! http://drupalcode.org/sandbox/othermachines/1456552.git/tree/refs/heads/...

If upgrading to 7.x from 6.x please view README.txt!

Formatters

There are some minor differences with 7.x version. Please see README.txt in 7.x-1.x branch.

  1. Date Formatter

    Variable output of a simple dateline.

    Examples (default output):

    Standard date output.

    Sunday, January 2, 2011 - 14:00-16:00
    

    Standard date output, date has passed.

    Mon, 2011-02-21 01:00 (ended)
    

    If a date with repeating frequency, will display the next event, with frequency, if it exists. If repeating in intervals will display (e.g.) "(Every 3 weeks)".

    Next event (Daily): Tue, 2011-03-01 02:00
    

    A repeating date that has ended will display the repeat rule "(Daily event)" as well as the time period during which the event repeated.

    (Daily event) February 01, 2011 to February 09, 2011 (ended)
    
  2. Date Formatter - Expanded

    Same as above, but appends a list of all repeating dates, hidden by default, with a toggle view/hide link. This is the recommended formatter for full node view

    Next event (Daily): Tue, 2011-03-01 02:00 | View all dates |
    -------- toggle show/hide on dates below ------> 
    All scheduled dates:
     Tue, 2011-03-01 02:00
     Wed, 2011-03-02 02:00 (ended)
     Thu, 2011-03-03 02:00
     Fri, 2011-03-04 02:00
    

Theming

To make the output accessible to themers, there are several theme functions which
handle different "chunks" of output, such as the full listing of repeating dates,
the repeat rule and the "(ended)" string.

Project information